<link rel="stylesheet" type="text/css" href="css/page.css"/>
<script type="text/javascript" src="js/plugin/date/moment.min.js"></script>
<script src="js/zy_Calendar.js" type="text/javascript"></script>
<style type="text/css">
#search{width:200px;}
.wrap{width:80%; float:right;}
table{width:100%; border-top: 1px solid #d5dde0; border-left: 1px solid #d5dde0; margin-bottom:10px; line-height:30px;}
th{background:#f2f7fa; color:#62676a;}
th,td{ text-align:center; border-bottom: 1px solid #d5dde0; border-right: 1px solid #d5dde0;}
.fenyeiWrap{width:680px; }
td input.set{width:40px; height:20px; text-align:center; line-height:20px\9; }
#perPageWrap{display:none;}
.act_btn{height: 31px;line-height:28px;background: #019be1;border: 1px solid #019be1;width: 74px;font-size: 14px;color: #FFF;font-weight: bold;cursor: pointer;}
.fenyeiWrap{margin-top:0;float:right;}
@media screen and (-webkit-min-device-pixel-ratio:0) {
	.set{line-height:24px;}
}
td input.set_d{line-height:24px;width:80px;text-align:center;}
p{padding-left:20px;margin-bottom:5px;}
p input{vertical-align:-5px\9;margin-right:10px;}
p button{line-height:20px;cursor: pointer;}

.radio{padding:0 5px;}
.set_radio{vertical-align: -2px;}

.search_t{height: 31px;line-height:28px;background: #019be1;border: 1px solid #019be1;width: 74px;font-size: 14px;color: #FFF;font-weight: bold;cursor: pointer;}
.search_j{font-size: 14px;line-height: 50px;}
.search_w{width: 200px;height: 30px;line-height: 30px;padding: 0px 3px;background-color: #ffffff;
border: 1px solid #e5e5e5;}
/* 日历插件样式 */
#calendarPanel{ width:231px; height:208px; padding:5px 0px; background:url(../images/calendarPannelWrap.gif) no-repeat 0 0}
#calendarPanel .calTopW{ width:100%; position:relative; height:28px;}
#calendarPanel .selectW{ overflow:hidden; margin:0 30px; text-align:center;}
#calendarPanel .calTopW input{ position:absolute; top:3px; display:block; width:22px; height:19px; cursor:pointer; font-size:0; border:0 none; background:none;}
#calendarPanel #prevMonth{ left:10px;}
#calendarPanel #nextMonth{ right:9px;}
#calendarPanel .selectW select{ height:24px; line-height:24px; width:77px;}
#calendarYear{ margin-right:5px;}
#calendarTable thead{ height:28px;}
#calendarTable thead th{ text-align:center; font-weight:bold;}
#calendarTable tbody{ }
#calendarTable tbody td{ height:23px; border-right:1px solid #ececec;border-bottom:1px solid #ececec}

</style>
<div class="wrap">
	<iframe name="ifr" style="display:none;"></iframe>
  <form action="">
	<p>
		<span class="search_j">查询条件：</span>
		<input type="text" name="txt" value="<?=$txt?>" class="search_w" id="search" />
		<button type="submit" class="search_t">查 询</button>
	</p>
  </form>
  <form action="fees_test.php" target="ifr" >
	<table>
		<tr>
			<th style="width:70px">供应商账号</th>
			<th style="width:100px">供应商名称</th>
			<th style="width:120px">联系人</th>
			<th style="width:70px">平台使用费(元)</th>
			<th style="width:70px">支付手续费用</th>
			<th style="width:70px">短信收费(元/条)</th>
			<th style="width:70px">电子凭证费(元/单)</th>
            <th style="width:70px">免费试用开始时间</th>
            <th style="width:70px">免费试用结束时间</th>
			<th style="width:70px">费用收取</th>
		</tr>
	<?	foreach($apply as $a){?>
		<tr>
			<td><?=$a['account']?></td>
			<td><?=$a['dname']?></td>
			<td><?=$a['cname'].":".$a['mobile']?></td>
			<td><input type="text" name="fee_platform[<?=$a['id']?>]" class="set" value="<?=$a['fee_platform']/100?>" /></td>
			<td><input type="text" name="fee_bank[<?=$a['id']?>]" class="set" value="<?=$a['fee_bank']?>" />‰</td>
			<td><input type="text" name="fee_sms[<?=$a['id']?>]" class="set" value="<?=$a['fee_sms']/100?>" /></td>
			<td><input type="text" name="fee_code[<?=$a['id']?>]" class="set" value="<?=$a['fee_code']/100?>" /></td>
            <!--<td><input type="test" name="freebtime[<?=$a['id']?>]" class="set" value="<?=$a['freebtime']?>"></td>
            <td><input type="test" name="freeendtime[<?=$a['id']?>]" class="set" value="<?=$a['freeendtime']?>"></td>-->
			<td><input type="text" name="freebtime[<?=$a['id']?>]" id="op" class="set_d" onmouseup="SelectDate(this,'yyyy-MM-dd',0,0)" value="<?=$a['freeendtime']?>"/></td>
			<td><input type="text" name="freeendtime[<?=$a['id']?>]" id="ed" class="set_d"  onmouseup="SelectDate(this,'yyyy-MM-dd',0,0)" value="<?=$a['freeendtime']?>"/></td>
			<td class="radio"><input type="radio" name="fee_pay_way[<?=$a['id']?>]" class="set_radio" value="1" <?if($a['fee_pay_way']==1){echo "checked";}?> />分销商<br /><input type="radio" name="fee_pay_way[<?=$a['id']?>]" class="set_radio" value="0" <?if($a['fee_pay_way']==0){echo "checked";}?> />供应商</td>
		</tr>
	<?	}?>
	</table>
	<button type="submit" class="act_btn" >修改</button>
	<?page($total,$currentPage,$pageSize);?>
  </form>
</div>